package com.qq.first_project.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author Qiu
 * @since 2023-01-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Friend implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String blogaddress;

    private String blogname;

    @TableField(fill = FieldFill.INSERT)// 自动填充
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")// 入参格式化
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")// 出参格式化
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)// 自动填充
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")// 入参格式化
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")// 出参格式化
    private Date updateTime;

    private String pictureaddress;


}
